//
//  LibraryTableViewCell.m
//  我的图书馆
//
//  Created by 孙  路 on 15-1-5.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "LibraryTableViewCell.h"

@implementation LibraryTableViewCell
- (void)dealloc
{
    [_titleLabel release];
    [_timeLabel release];
    [_authorLabel release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, self.contentView.frame.size.width - 20, 20)];
    [_titleLabel setFont:[UIFont systemFontOfSize:15]];
    [_titleLabel setNumberOfLines:0];
    [self.contentView addSubview:_titleLabel];
    [_titleLabel release];

    self.timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 30, 150, 10)];
    [_timeLabel setFont:[UIFont systemFontOfSize:10]];
    [self.contentView addSubview:_timeLabel];
    [_timeLabel release];

    self.authorLabel = [[UILabel alloc] initWithFrame:CGRectMake(160, 30, 100, 20)];
    [_authorLabel setFont:[UIFont systemFontOfSize:10]];
    [self.contentView addSubview:_authorLabel];
    [_authorLabel release];
    }
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
